home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / bash-completion / contrib / bitkeeper next >
Encoding:
Text File  |  2009-01-21  |  375 b   |  22 lines

  1. # BitKeeper completion adapted from code by  Bart Trojanowski <bart@jukie.net>
  2. #
  3. # $Id: bitkeeper,v 1.2 2002/06/12 22:03:23 ianmacd Exp $
  4. #
  5.  
  6. _bk() {
  7.     local BKCMDS
  8.  
  9.     COMPREPLY=()
  10.     cur=`_get_cword`
  11.  
  12.     BKCMDS="$( bk help topics | grep '^  bk' | cut -d ' ' -f 4 | \
  13.            xargs echo )"
  14.  
  15.     COMPREPLY=( $( compgen -W "$BKCMDS" -- "$cur" ) )
  16.     _filedir
  17.  
  18.     return 0
  19. }
  20. complete -F _bk bk
  21.  
  22.